package com.icode.core.model.house;

import com.icode.core.model.AbstractEntity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created with IntelliJ IDEA.
 * User: xianfei
 * Date: 15-6-8
 * Time: 上午11:31
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "exchange_pool")
public class ExchangePool extends AbstractEntity {


    @ManyToOne
    @JoinColumn(name = "my_house_id")
    private MyHouse myHouse;

    public ExchangePool() {
    }

    public ExchangePool(MyHouse myHouse) {
        this.myHouse = myHouse;
    }

    public MyHouse myHouse() {
        return myHouse;
    }


}
